package com.gopay.common.domain.dic;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.gopay.common.domain.BaseEntity;

/**
 * Entity: 币种字典
 */
@Entity
@Table(name = "DIC_CURRENCY_TYPE")
public class DicCurrencyType extends BaseEntity {

    private static final long serialVersionUID = 5891833792927398270L;

    /** 
     * 序列号
     */
    private Integer sq;

    /** 
     * 货币数字代码
     */
    private String curId;

    /** 
     * 货币代码
     */
    private String curCode;

    /** 
     * 货币名称
     */
    private String curName;

    /** 
     * 国家或地区
     */
    private String curCountry;

    /** 
     * 创建时间
     */
    private Date createdTs;

    /** 
     * 最后更新时间
     */
    private Date lastUpdTs;

    /** 
     * 今日是否可以换汇 0不可换汇，1正常
     */
    private String effective;

    /** 
     * 是否删除 0逻辑删除，1正常
     */
    private String isDeleted;
    
    /** 
     * 排序（正序）
     */
    private String sort;

    public DicCurrencyType() {
    }

    public DicCurrencyType(Integer sq, String curId, String curCode) {
        setSq(sq);
        setCurId(curId);
        setCurCode(curCode);
    }

    public DicCurrencyType(Integer sq, String curId, String curCode, String curName, String curCountry,
            Date createdTs, Date lastUpdTs, String effective, String isDeleted) {
        setSq(sq);
        setCurId(curId);
        setCurCode(curCode);
        setCurName(curName);
        setCurCountry(curCountry);
        setCreatedTs(createdTs);
        setLastUpdTs(lastUpdTs);
        setEffective(effective);
        setIsDeleted(isDeleted);
    }

    @Id

    @Column(name = "SQ", unique = true, nullable = false, precision = 22, scale = 0)
    public Integer getSq() {
        return this.sq;
    }

    public void setSq(Integer sq) {
        this.sq = sq;
    }

    @Column(name = "CUR_ID", nullable = false, length = 3)
    public String getCurId() {
        return this.curId;
    }

    public void setCurId(String curId) {
        this.curId = curId;
    }

    @Column(name = "CUR_CODE", nullable = false, length = 3)
    public String getCurCode() {
        return this.curCode;
    }

    public void setCurCode(String curCode) {
        this.curCode = curCode;
    }

    @Column(name = "CUR_NAME", length = 30)
    public String getCurName() {
        return this.curName;
    }

    public void setCurName(String curName) {
        this.curName = curName;
    }

    @Column(name = "CUR_COUNTRY", length = 50)
    public String getCurCountry() {
        return this.curCountry;
    }

    public void setCurCountry(String curCountry) {
        this.curCountry = curCountry;
    }

    @Column(name = "CREATED_TS")
    public Date getCreatedTs() {
        return this.createdTs;
    }

    public void setCreatedTs(Date createdTs) {
        this.createdTs = createdTs;
    }

    @Column(name = "LAST_UPD_TS")
    public Date getLastUpdTs() {
        return this.lastUpdTs;
    }

    public void setLastUpdTs(Date lastUpdTs) {
        this.lastUpdTs = lastUpdTs;
    }

    @Column(name = "EFFECTIVE", length = 1)
    public String getEffective() {
        return this.effective;
    }

    public void setEffective(String effective) {
        this.effective = effective;
    }

    @Column(name = "IS_DELETED", length = 1)
    public String getIsDeleted() {
        return this.isDeleted;
    }

    public void setIsDeleted(String isDeleted) {
        this.isDeleted = isDeleted;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

}
